<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:35:"./views/home/mobile/vip\index.phtml";i:1627189512;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>会员中心</title>
    <link rel="stylesheet" href="/static/home/mobile/css/user.css" />
       <script src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
    <script src="/static/plugins/dialog/js/dialog.js"></script>
    <script type="text/javascript" src="/static/plugins/clipboard.min.js"></script>
    <script type="text/javascript" src="/static/home/mobile/js/global.js"></script>
    <style>
    	.back {
		    float: left;
	
		    margin-top: 12px;
		    margin-left:20px;
		    display:block;
		    line-height: 50px;
		    height:1px;
		    width:1px;
		}
		.wap .vip_top{background:#111;}
		body{background:#111;}
		.wap .vip_main h2,.wap .vip_top .m1 .n2 .a2,.wap .vip_top .m1 .n2 .a1 span{color:#fff;}
		.wap .vip_main table{background:#222;border-left:1px solid #333;border-top:1px solid #333;}
		.wap .vip_main table .m{background: #2a2a2a;
    color: #fff;
    font-size: 16px;
    font-weight: bold;}
    .wap .vip_main table td{
        border-right: 1px solid #333;
        padding: 5px 0;
        border-bottom: 1px solid #333;
        color:#9d9fa0;

    }
    .wap .vip_top .m1 .n1{
        position: relative;
    }
    .wap .vip_top .m1 .n1 .n1-avatar{
        background:url(/static/home/mobile/images/vip-avatar.png) no-repeat;
        width: 130px;
        height: 130px;
        background-size: 100%;
        position: absolute;
        top: 5px;
        right: 12px;
    }
    .wap .vip_top .m1 .n2 .a1, .wap .vip_top .m1 .n2 .a2, .wap .vip_top .m1 .n2 .a3{
        padding-left: 5%;
    }
    
    </style>
</head>
<body>
	<div class="wap">
		<!--vip_top start-->
		<div class="vip_top">
			<div class="tt" style="background:#111;">
				<a onclick="window.history.back();" class="back">
					
					<img src="/static/home/mobile/images/return2.png" style="display:block;width:30px;height:30px;">
				</a>
				<div style="text-align:center;">
					会员中心
				</div>
				</div>
			<!--m1 start-->
			<div class="m1">
				<div class="n1">
				   <img src="/img/m02new.png">
				   <div class="n1-avatar"></div>
				</div>
				<div class="n2" style="top:20px;">
					<div class="a1">
					    <img src="<?php echo $info['avatar']; ?>">
					    <span><?php echo $info['uid']; ?></span>
					</div>
					<div style="clear: both;"></div>
					<div class="a2" style="display">开通会员尊享6重权益</div>
					<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;if($v['id']==3): ?>
    				    	<div class="a3"><a href="javascript:;" onclick="vip1on(3)">会员开通<?php echo $v['have_money']; ?>元/月</a></div>
    					<?php endif; endforeach; endif; else: echo "" ;endif; if(!empty($info)): 
    					if($info['level_time']){
    					
                			$endtime=date("Y-m-d",($info['level_time']));
    					}else{
    						$endtime='未开通会员';
    					}
                	 ?>
         
                       <div style="width:90%;padding-left:5%;text-align:left;color:#f2f2f2;font-size:14px;margin-top:10px;">
                       	  会员到期日期：<?php echo $endtime; ?>
                       	  
                       	</div>
    		<?php endif; ?>
					
					<div style="clear: both;"></div>
				</div>	
			</div>
			<!--m1 end-->
		</div>
		<!--vip_top end-->
		<div style="clear: both;"></div>
		<!--vip_main start-->
		<div class="vip_main">
			<h2>" VIP会员权益 "</h2>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr class="m">
					<td class="n1">名称</td>
					<td class="n2">非会员</td>
					<td>会员</td>
				</tr>
					<tr>
					<td>VIP标识</td>
					<td>无</td>
					<td>专属图标</td>
				</tr>
				<tr>
                    <td>发布任务数</td>
					<td>限免</td>
					<td>无限制</td>
				</tr>
				<tr>
					<td>每天赠送置顶</td>
					<td>无</td>
					<td>1小时</td>
				</tr>
				<tr>
					<td>置顶费用</td>
					<td>3</td>
					<td>2</td>
				</tr>
				<tr>
					<td>每日签到</td>
					<td>0.1元</td>
					<td>1元</td>
				</tr>
				<tr>
					<td>三级推广</td>
					<td>22%</td>
					<td>36%</td>
				</tr>
				<!--<tr>-->
				<!--	<td>余额提现</td>-->
				<!--	<td>限免</td>-->
				<!--	<td>限免</td>-->
				<!--</tr>-->
					<!--<td>发布任务数</td>
					<td>根据信誉等级</td>
					<td>无限制</td>
				</tr>
				<tr>
					<td>每天赠送置顶</td>
					<td>无</td>
					<td>1小时</td>
				</tr>
				<tr>
					<td>置顶费用</td>
					<td>8</td>
					<td>5</td>
				</tr>
				<tr>
					<td>VIP标识</td>
					<td>无</td>
					<td>专属图标</td>
				</tr>
				<tr>
					<td>服务费收取比例</td>
					<td>12%</td>
					<td>8%</td>
				</tr>
				<tr>
					<td>赏金余额提现</td>
					<td>2%</td>
					<td>免费</td>
				</tr>
				<tr>
					<td>充值余额提现</td>
					<td>10%</td>
					<td>5%</td>
				</tr>-->
			</table>
			<div class="n3">温馨提示会员开通后不做退费处理，请认真阅读后再开通</div>
		</div>
		<!--vip_main end-->
	</div>
	  <script type="text/javascript">
        function vip1on(id){
            if(confirm("确定要开通该VIP吗？")){
                $.ajax({
                    url: "/home/vip/openvip",
                    type: "post",
                    dataType: "json",
                    data:{"id":id},
                    success: function(d) {
                        if(d.status == 2){
                            alert(d.message);
                            window.location.href="../home/recharge";
                        }else{
                            alert(d.message);
                            window.location.reload();
                        }

                    }


                });
            }

        }
    </script>
</div>
<script type="text/javascript" src="/static/home/mobile/js/mytaskjoin.js?v=4"></script>
</body>
</html>